package com.vt.admin.api.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 用户
 */
@Data
@Accessors(chain = true)
public class SysUser extends Model<SysUser> {


    private String id;

    @ApiModelProperty("用户名")
    private String account;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("微信号")
    private String wechat;

    private Integer userType;

    @ApiModelProperty("用户状态(0-禁用,1-正常)")
    private Integer userStatus;

    private Date lastLoginTime;

    @ApiModelProperty("备注")
    private String remark;

    private String creater;

    private String updater;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    private Date updateTime;

    private String wxOpenId;
}
